package com.suixun.entity.ext.credits.company;

/**
 * 统计商品使用情况
 * 
 * @author yh
 * @date 2017年12月15日
 */
public class CountGoodsInfo {

    /**
     * 领取量
     */
    private Integer totalNum;

    /**
     * 已使用量
     */
    private Integer consumeNum;

    /**
     * 未使用量
     */
    private Integer notConsumeNum;

    public Integer getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }

    public Integer getConsumeNum() {
        return consumeNum;
    }

    public void setConsumeNum(Integer consumeNum) {
        this.consumeNum = consumeNum;
    }

    public Integer getNotConsumeNum() {
        if (this.totalNum != null && this.consumeNum != null) {
            return this.totalNum - this.consumeNum;
        }
        return notConsumeNum;
    }

    public void setNotConsumeNum(Integer notConsumeNum) {
        this.notConsumeNum = notConsumeNum;
    }

}
